package com.s666.demo.exception;

import lombok.Data;

/**
 * 通用异常处理
 * @author lijin
 */
@Data
public class CommonException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private String message;
    private String code;

    public CommonException(String code, String message) {
        super(message);
        this.message = message;
        this.code = code;
    }
}

